package com.lesso.cyg.sunflower.domain.repository;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.cyg.sunflower.model.Employee;
import com.lesso.cyg.sunflower.pojo.dto.EmployeeDTO;
import com.lesso.cyg.sunflower.pojo.dto.EmployeeQueryDTO;
import com.lesso.cyg.sunflower.pojo.vo.EmployeeVO;

/**
 * EmployeeRepository
 *
 * @author cyg
 * @since 2025-07-02
 */
public interface EmployeeRepository {
    Integer save(Employee employee);

    Page<EmployeeVO> getPageList(EmployeeQueryDTO dto);

    Page<EmployeeVO> getCustomPageList(EmployeeQueryDTO dto);

    void removeById(Long id);

    // 添加更新员工的实现
    void update(EmployeeDTO dto);

    EmployeeVO getById(Long id);

    Integer update(Employee employee);
}
